package cn.tedu.charging.order.client;

import cn.tedu.charging.common.pojo.param.ProgressCostParam;
import cn.tedu.charging.common.pojo.vo.ProgressCostVO;
import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 调用充电桩项目中计价服务
 */
@FeignClient(name="charging-cost")
public interface CostClient {
    /**
     * 计算某个用户的某个订单的某次充电进度的总价格
     */
    @PostMapping("/cost/bill/calculate")
    JsonResult<ProgressCostVO> calculateBill(@RequestBody ProgressCostParam param);
}
